package com.zzyl.service;

import com.zzyl.base.PageResponse;
import com.zzyl.base.ResponseResult;
import com.zzyl.dto.ReservationDto;
import com.zzyl.vo.ReservationVo;
import com.zzyl.vo.TimeCountVo;

import java.time.LocalDateTime;
import java.util.List;

public interface CustomerReservationService {

    Integer getCancelledCount(Long userId);

    ResponseResult addReservation(ReservationDto reservationDto);

    int getReservationCount(LocalDateTime dateTime, LocalDateTime endTime);

    PageResponse<ReservationVo> selectByPage(Integer pageNum, Integer pageSize, Long userId, Integer status);

    void cancelReservation(Long id);


    void updateReservationStatus(LocalDateTime now);
}
